package viz.controller.assembly
{

	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import uk.co.revisual.pivot.proxies.PivotProxy;
	
	import viz.model.flare.decoders.StateMap2Flare;
	import viz.model.flare.proxies.FlareDataProxy;
	import viz.model.flare.proxies.StateDataProxy;
	import viz.model.prefs.proxies.PreferenceProxy;

	public class AssembleModelCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var pref:PreferenceProxy = new PreferenceProxy(),
				pivot:PivotProxy = new PivotProxy(),
				flare:FlareDataProxy = new FlareDataProxy( StateMap2Flare),
				state:StateDataProxy = new StateDataProxy( flare );	
				
						
			facade.registerProxy( pref );
			facade.registerProxy( pivot );
			facade.registerProxy( flare );
			facade.registerProxy( state );
		}
		
	}
}